<style>
</style>
<template>
  <el-dialog
    title="温馨提示"
    :visible.sync="innerVisible"
    width="400px"
    center
  >
    <el-row></el-row>
    <el-row>
      <p style="text-align: center;"><span>您尚未设置钱包密码,</span></p>
      <p style="text-align: center;"><span>请先前往设置钱包密码</span></p>
    </el-row>
    <!--<div class="row">-->
      <!--<p class="col-xs-8 col-xs-offset-3"><span>您尚未设置钱包密码,</span></p>-->
      <!--<p class="col-xs-8 col-xs-offset-3"><span>请先前往设置钱包密码</span></p>-->
    <!--</div>-->
    <div slot="footer" >
      <el-row>
        <el-button type="primary" class="btn  btn-block" style="margin-bottom: 10px;"
                   @click="goSetPsdShow()">确认</el-button>
      </el-row>
    </div>
  </el-dialog>
</template>
<script>
// import {httpSuccessPost} from '@/service/dataService'
// import {dotData} from '@/assets/scripts/base/functions'
export default{
  components: {
  },
  props: {
    visible: {
      type: Boolean,
      required: true
    }
  },
  data() {
    return {
      innerVisible: false
    }
  },
  created() {},
  watch: {
    // 监听并更新传进来的 visible
    visible(val, oldVal) {
      if (val === oldVal) {
        return
      }
      this.innerVisible = val
    },
    // 监听 并根据innerVisible的新值更新父组件visible的值
    innerVisible(val, oldVal) {
      if (val === oldVal) {
        return
      }
      this.$emit('update:visible', val)
    }
  },
  computed: {
  },
  methods: {
    hide() {
      this.innerVisible = false
    },
    goSetPsdShow() {
      this.hide()
      this.$router.push({path: '/ss-oms/myWallet/setPsdShow'})
    }
  }
}
</script>
